n = int(input())
d = {}
# 1 读取输入，放到字典的键里
for i in range(n):
    s = input()
    if s not in d:
        d[s] = 0
# 2 输出字典的长度
print(len(d))
